package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologyTs;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyTsVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologyTsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologyTs record);

    int insertSelective(RoutinePathologyTs record);

    RoutinePathologyTs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologyTs record);

    int updateByPrimaryKey(RoutinePathologyTs record);

    /**
     * 查询总数
     *
     * @param routinePathologyTsSearchVo
     * @return
     */
    int count(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologyTsSearchVo
     * @return
     */
    List<RoutinePathologyTsVo> selectList(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologyTsSearchVo
     * @return
     */
    RoutinePathologyTsVo selectOne(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologyTsVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologyTsSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologyTs> entities);

    /**
     * 根据DevId查询列表
     *
     * @param devId
     * @return
     */
    List<RoutinePathologyTsVo> selectListByDevId(Long devId);
}